package net.steam.easyjoboa.entity;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * Employee entity. @author MyEclipse Persistence Tools
 */

public class Employee implements java.io.Serializable {

	// Fields

	private Integer userId;
	private Position position;
	private String userName;
	private String userPassword;
	private Date userBirthday;
	private String userPhone;
	private String userAddress;
	private String userSex;
	private String userEducation;
	private String userEmail;
	private String userOfficephone;
	private Date userCreatedate;
	private String createStr;
	private Integer userJobstatus;
	private Set messagesForGetId = new HashSet(0);
	private Set messagesForSendId = new HashSet(0);
	private Set leaveChecks = new HashSet(0);
	private Set addressGroups = new HashSet(0);
	private List<Roles> roleses = new ArrayList<Roles>();
	private Set addressBooks = new HashSet(0);
	private Set voteDetails = new HashSet(0);
	private Set voteItems = new HashSet(0);
	private Set goodusers = new HashSet(0);
	private Set loginLogs = new HashSet(0);
	private Set ticklers = new HashSet(0);
	private Set leaves = new HashSet(0);
	private Set proclaims = new HashSet(0);
	private Set claimVouchers = new HashSet(0);

	// Constructors

	/** default constructor */
	public Employee() {
	}

	/** minimal constructor */
	public Employee(String userName, String userPassword, Date userBirthday,
			String userAddress, String userSex, String userEducation) {
		this.userName = userName;
		this.userPassword = userPassword;
		this.userBirthday = userBirthday;
		this.userAddress = userAddress;
		this.userSex = userSex;
		this.userEducation = userEducation;
	}

	/** full constructor */
	public Employee(Position position, String userName, String userPassword,
			Date userBirthday, String userPhone, String userAddress,
			String userSex, String userEducation, String userEmail,
			String userOfficephone, Date userCreatedate, Integer userJobstatus,
			Set messagesForGetId, Set messagesForSendId, Set leaveChecks,
			Set addressGroups, List<Roles> roleses, Set addressBooks, Set voteDetails,
			Set voteItems, Set goodusers, Set loginLogs, Set ticklers,
			Set leaves, Set proclaims, Set claimVouchers) {
		this.position = position;
		this.userName = userName;
		this.userPassword = userPassword;
		this.userBirthday = userBirthday;
		this.userPhone = userPhone;
		this.userAddress = userAddress;
		this.userSex = userSex;
		this.userEducation = userEducation;
		this.userEmail = userEmail;
		this.userOfficephone = userOfficephone;
		this.userCreatedate = userCreatedate;
		this.userJobstatus = userJobstatus;
		this.messagesForGetId = messagesForGetId;
		this.messagesForSendId = messagesForSendId;
		this.leaveChecks = leaveChecks;
		this.addressGroups = addressGroups;
		this.roleses = roleses;
		this.addressBooks = addressBooks;
		this.voteDetails = voteDetails;
		this.voteItems = voteItems;
		this.goodusers = goodusers;
		this.loginLogs = loginLogs;
		this.ticklers = ticklers;
		this.leaves = leaves;
		this.proclaims = proclaims;
		this.claimVouchers = claimVouchers;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Position getPosition() {
		return this.position;
	}

	public void setPosition(Position position) {
		this.position = position;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPassword() {
		return this.userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public Date getUserBirthday() {
		return this.userBirthday;
	}

	public void setUserBirthday(Date userBirthday) {
		this.userBirthday = userBirthday;
	}

	public String getUserPhone() {
		return this.userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	public String getUserAddress() {
		return this.userAddress;
	}

	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress;
	}

	public String getUserSex() {
		return this.userSex;
	}

	public void setUserSex(String userSex) {
		this.userSex = userSex;
	}

	public String getUserEducation() {
		return this.userEducation;
	}

	public void setUserEducation(String userEducation) {
		this.userEducation = userEducation;
	}

	public String getUserEmail() {
		return this.userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	public String getUserOfficephone() {
		return this.userOfficephone;
	}

	public void setUserOfficephone(String userOfficephone) {
		this.userOfficephone = userOfficephone;
	}

	public Date getUserCreatedate() {
		return this.userCreatedate;
	}

	public void setUserCreatedate(Date userCreatedate) {
		this.userCreatedate = userCreatedate;
	}

	public Integer getUserJobstatus() {
		return this.userJobstatus;
	}

	public void setUserJobstatus(Integer userJobstatus) {
		this.userJobstatus = userJobstatus;
	}

	public Set getMessagesForGetId() {
		return this.messagesForGetId;
	}

	public void setMessagesForGetId(Set messagesForGetId) {
		this.messagesForGetId = messagesForGetId;
	}

	public Set getMessagesForSendId() {
		return this.messagesForSendId;
	}

	public void setMessagesForSendId(Set messagesForSendId) {
		this.messagesForSendId = messagesForSendId;
	}

	public Set getLeaveChecks() {
		return this.leaveChecks;
	}

	public void setLeaveChecks(Set leaveChecks) {
		this.leaveChecks = leaveChecks;
	}

	public Set getAddressGroups() {
		return this.addressGroups;
	}

	public void setAddressGroups(Set addressGroups) {
		this.addressGroups = addressGroups;
	}


	public Set getAddressBooks() {
		return this.addressBooks;
	}

	public void setAddressBooks(Set addressBooks) {
		this.addressBooks = addressBooks;
	}

	public Set getVoteDetails() {
		return this.voteDetails;
	}

	public void setVoteDetails(Set voteDetails) {
		this.voteDetails = voteDetails;
	}

	public Set getVoteItems() {
		return this.voteItems;
	}

	public void setVoteItems(Set voteItems) {
		this.voteItems = voteItems;
	}

	public Set getGoodusers() {
		return this.goodusers;
	}

	public void setGoodusers(Set goodusers) {
		this.goodusers = goodusers;
	}

	public Set getLoginLogs() {
		return this.loginLogs;
	}

	public void setLoginLogs(Set loginLogs) {
		this.loginLogs = loginLogs;
	}

	public Set getTicklers() {
		return this.ticklers;
	}

	public void setTicklers(Set ticklers) {
		this.ticklers = ticklers;
	}

	public Set getLeaves() {
		return this.leaves;
	}

	public void setLeaves(Set leaves) {
		this.leaves = leaves;
	}

	public Set getProclaims() {
		return this.proclaims;
	}

	public void setProclaims(Set proclaims) {
		this.proclaims = proclaims;
	}

	public Set getClaimVouchers() {
		return this.claimVouchers;
	}

	public void setClaimVouchers(Set claimVouchers) {
		this.claimVouchers = claimVouchers;
	}

	public List<Roles> getRoleses() {
		return roleses;
	}

	public void setRoleses(List<Roles> roleses) {
		this.roleses = roleses;
	}

	public String getCreateStr() {
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
		createStr=sdf.format(userCreatedate);
		return createStr;
	}

	public void setCreateStr(String createStr) {
		this.createStr = createStr;
	}

}